class ChapterModel {
  int Id;

  String Title;

  String Thumb;

  String Intro;

  int ComicId;

  int IsVip;

  ChapterModel(
      this.Id, this.Title, this.Thumb, this.Intro, this.ComicId, this.IsVip);

  ChapterModel.formJson(Map<String, dynamic> json)
      : this.Id = json["Id"],
        this.Title = json["Title"],
        this.Thumb = json["Thumb"],
        this.Intro = json["Intro"],
        this.ComicId = json["ComicId"],
        this.IsVip = json["IsVip"] ?? 0;

  Map<String, dynamic> toJson() => {
        "Id": this.Id,
        "Title": this.Title,
        "Thumb": this.Thumb,
        "Intro": this.Intro,
        "ComicId": this.ComicId,
        "IsVip": this.IsVip,
      };
}
